﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Runtime.Serialization;
using System.ServiceModel;
using System.ServiceModel.Web;
using System.Text;



namespace Query
{

    [ServiceContract]
	public interface IGetFromDBService
	{
        [OperationContract]
        [WebInvoke(Method = "GET",
            RequestFormat = WebMessageFormat.Xml,
            ResponseFormat = WebMessageFormat.Xml,
            UriTemplate = "ChartDay/{day}/{currencyname}")]
        List<Rate> ChartDayXML(string day, string currencyname);

        [OperationContract]
        [WebInvoke(Method = "GET",
            RequestFormat = WebMessageFormat.Xml,
            ResponseFormat = WebMessageFormat.Xml,
            UriTemplate = "ChartWeek/{day}/{currencyname}")]
        List<Rate> ChartWeekXML(string day, string currencyname);

        [OperationContract]
        [WebInvoke(Method = "GET",
            RequestFormat = WebMessageFormat.Xml,
            ResponseFormat = WebMessageFormat.Xml,
            UriTemplate = "ChartMonth/{day}/{currencyname}")]
        List<Rate> ChartMonthXML(string day, string currencyname);

        [OperationContract]
        [WebInvoke(Method = "GET",
            RequestFormat = WebMessageFormat.Xml,
            ResponseFormat = WebMessageFormat.Xml,
            UriTemplate = "ChartYear/{day}/{currencyname}")]
        List<Rate> ChartYearXML(string day, string currencyname);

        [OperationContract]
        [WebInvoke(Method = "GET",
            RequestFormat = WebMessageFormat.Json,
            ResponseFormat = WebMessageFormat.Json,
            UriTemplate = "ChartDay/json/{day}/{currencyname}")]
        List<Rate> ChartDayJson(string day, string currencyname);

        [OperationContract]
        [WebInvoke(Method = "GET",
            RequestFormat = WebMessageFormat.Json,
            ResponseFormat = WebMessageFormat.Json,
            UriTemplate = "ChartWeek/json/{day}/{currencyname}")]
        List<Rate> ChartWeekJson(string day, string currencyname);

        [OperationContract]
        [WebInvoke(Method = "GET",
            RequestFormat = WebMessageFormat.Json,
            ResponseFormat = WebMessageFormat.Json,
            UriTemplate = "ChartMonth/json/{day}/{currencyname}")]
        List<Rate> ChartMonthJson(string day, string currencyname);

        [OperationContract]
        [WebInvoke(Method = "GET",
            RequestFormat = WebMessageFormat.Json,
            ResponseFormat = WebMessageFormat.Json,
            UriTemplate = "ChartYear/json/{day}/{currencyname}")]
        List<Rate> ChartYearJson(string day, string currencyname);
	}

}
